
// afisare numarul de device( partitii ) in sistem

package EXEMPLE;

import java.io.File;

public class App{

   public static void main (String args[]) {

	   File[] rootDrive = File.listRoots();

	   for(File sysDrive : rootDrive){
		   System.out.println("Drive : " + sysDrive);
	   }
   }
}